<?php
class ControllerModuleSearch extends Controller
{
	public function index()
	{
		$this->data['keyword'] = $this->request->get['keyword'];
		$this->data['sitemapid'] = $this->document->sitemapid;
		$this->getList();
		$this->id="module_search";
		$this->template="module/search.tpl";
		$this->render();
	}
	
	private function getList()
	{
		$this->load->model("core/sitemap");
		$this->data['sitemaps'] = $this->model_core_sitemap->getListByParent("site2", $this->user->getSiteId());
	}
}
?>